<div class="container" id="ajax_content">
    <?php
        include 'header2.php';
    ?>
    <div class="content">
    	<div class="headcontent">
        <span class="randomtext" style="margin-left:50px">Hi, 
	<?php
            global $session;
            $user_id = $session->get('userid');
            $sql="SELECT fullname FROM user WHERE iduser='$user_id'";
            $result=mysql_query($sql);
            while($res = mysql_fetch_array($result)) {
                $nama = $res['fullname'];
            }
            echo $nama;
        ?>
        </span>
        <span class="randomtext" style="padding-left:850px">EDIT PROFILE</span>
        <hr/>
        </div>
    	<div class="singlecontent" style="width:650px">
            <div>
                <form action="<?php echo BASE_PATH . "eprof/editprofile" ?>" method="post" enctype="multipart/form-data">
                    <div class="items">
                        <label>Full Name</label>
                        <input type="text" name="fullname"  value="<?php echo $user;?>"/>
                        <span class="validationtext" id="u_fname"></span>
                    </div>
                    <div class="items">
                        <label>Password</label>
                        <input type="password" name="password"/>
                        <span class="validationtext" id="u_pwd"></span>
                    </div>
                    <div class="items">
                        <label> Confirm Pwd</label>
                        <input type="password" name="confirmpwd"/>
                        <span class="validationtext" id="u_pwd2"></span>
                    </div>
                    <div class="items">
                        <label>Birth Date</label>
                        <input type="text" name="tgl_lahir"  value="<?php echo $pbirthday;?>"/>
                        <span class="validationtext" id="u_tgllahir""></span>
                    </div>
                    <div class="items">
                        <label>Email</label>
                        <input type="text" name="email"  value="<?php echo $pemail;?>"/>
                        <span class="validationtext" id="u_email"></span>
                    </div>
                    <div class="items">
                        <label>Gender</label>
                        <input type="radio" name="gender" value="P" checked="checked">Pria
                        <input type="radio" name="gender" value="W">Wanita
                        <br/>
                    </div>
                    <div class="items">
                        <label>Location</label>
                        <input type="text" name="kota"  value="<?php echo $plocation;?>"/>
                        <span class="validationtext" id="u_kota"></span>
                    </div>
                    <div class="items">
                        <label>Profile Picture</label>
                        <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
                        <input type="file" name="profpic" /><br/>
                        <span class="validationtext" id="u_profpic"></span>
                    </div>
                    <div style="margin-left:150px">
                        <button type="submit">Save Changes</button>
                    </div>
                </form>
            </div>
    	</div>
    </div>
    <div class="footer"></div>
</div>
</body>
</html>
